package com.csu.mall.search.feign;

import com.csu.mall.common.dto.AttrTo;
import com.csu.mall.common.dto.BrandTo;
import com.csu.mall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("product")
public interface ProductFeignService {
    @PostMapping("/product/spuinfo/{spuId}/updateStatus")
    public R updateSpuStatus(@PathVariable("spuId") Long spuId,@RequestParam Long status);

    @RequestMapping("/product/attr/attrInfo/{attrId}")
    public AttrTo attrInfo(@PathVariable("attrId") Long attrId);

    @GetMapping("/product/brand/info")
    public List<BrandTo> brandInfo(@RequestParam List<Long> brandIds);
}
